package com.fjnldx.mes.domain.domainReq;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.time.LocalDate;

/**
 * 轮班设置
 */
@Data
public class QuerySchedulingShift {
  private Integer id;
  private String org;
  private String cj;
  private String gongxu;
  private String shiftType;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private LocalDate startTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private LocalDate endTime;
  private String bcInit;
  private String bh;
  @Min(value = 1,message = "页码需要大等于1")
  private int page;
  @Min(value = 0,message = "页数需要大等于0")
  private int size;
}
